#include "Game.hh"
#include <iostream>
#include <string>

int main() {
    std::string playerName;

    std::cout << "Welcome to the dungeon adventure!" << std::endl;
    std::cout << "Please enter your role name: ";
    std::getline(std::cin, playerName);

    if (playerName.empty()) {
        playerName = "Brave";
    }

    Game game(playerName);
    game.run();

    return 0;
}


//这段C++代码是游戏程序的入口点，负责初始化玩家信息并启动游戏主循环。通过控制台交互获取玩家名称，初始化并启动游戏。

// This C++ code is the entry point to the game program and is responsible for initializing player information and starting the main game loop.
// Get the player name through console interaction, initialize and launch the game. 